<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:p="http://primefaces.org/ui"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
	<link rel="stylesheet"
		href="../resources/css/smoothness/jquery-ui-1.8.16.custom.css"
		type="text/css" />
	<script language="javascript" type="text/javascript"
		src="../resources/js/default.js"></script>
	<title>JUniversity</title>
</h:head>
<h:body>
	<h:form id="formLogin">
	 <h:inputHidden value="#{loginBean.usuario.id}" />
		<!-- <ui:composition template="resources/template/padrao.xhtml"> -->


		<p:panelGrid columns="2">



		<f:facet name="header">  
        Tela de Login 
   		 </f:facet>
   		
			<h:outputLabel for="login" value="Login: *" />
				
			<p:inputText id="login" value="#{loginBean.usuario.email}" label="login" />
			<h:outputLabel for="senha" value="Senha: *" />
			
			<p:password id="senha" value="#{loginBean.usuario.password}" required="true" label="senha"
				feedback="true" promptLabel="Digite sua senha" weakLabel="Fraca"
				goodLabel="Media" strongLabel="Forte" />
			
			<f:facet name="footer">
				<p:commandButton ajax="false" action="#{loginBean.login}" value="Entrar" />
			</f:facet>
		</p:panelGrid>



		<ui:insert name="rodape">
			<ui:include src="rodape.xhtml" />
		</ui:insert>
	</h:form>
</h:body>
</html>